import request from '@/utils/request'

export function getLots (data) {
  return request({
    url: '/ctrl/getLots',
    method: 'get',
    params: data
  })
}

export function getLotData (id) {
  return request({
    url: '/ctrl/getLotData',
    method: 'get',
    params: { id }
  })
}

export function setLotState (data) {
  return request({
    url: '/ctrl/setLotState',
    method: 'post',
    data
  })
}

export function setGoodsState (data) {
  return request({
    url: '/ctrl/setGoodsState',
    method: 'post',
    data
  })
}

export function postLiveBid (data) {
  return request({
    url: '/ctrl/postLiveBid',
    method: 'post',
    data
  })
}

export function setLivePush (data) {
  return request({
    url: '/ctrl/setLivePush',
    method: 'post',
    data
  })
}

export function revokeBid (data) {
  return request({
    url: '/ctrl/revokeBid',
    method: 'post',
    data
  })
}

export function getScreenLots () {
  return request({
    url: '/ctrl/getScreenLots',
    method: 'get'
  })
}

export function getScreenData (id) {
  return request({
    url: '/ctrl/getScreenData',
    method: 'get',
    params: { id }
  })
}

export function getBidcoCurr (id) {
  return request({
    url: '/ctrl/getBidcoCurr',
    method: 'get',
    params: { id }
  })
}

export function postCoBid (data) {
  return request({
    url: '/ctrl/postCoBid',
    method: 'post',
    data
  })
}

export function setLiveNum (data) {
  return request({
    url: '/ctrl/setLiveNum',
    method: 'post',
    data
  })
}

export function getBidnetCurr (id) {
  return request({
    url: '/ctrl/getBidnetCurr',
    method: 'get',
    params: { id }
  })
}

export function passNetBid (data) {
  return request({
    url: '/ctrl/passNetBid',
    method: 'post',
    data
  })
}
